// 搜索页api

//导入axios实例
import request from './request';

//获取热门搜索
export const reqHotSearch = () => request({ url: '/search/hot', method: "GET" });

//获取默认搜索关键字
export const reqDefaultSearch = () => request({ url: '/search/default', method: 'GET' });

//搜索歌曲
// export const reqSearchSong = (str) => request({ url:, method: "GET" });

//获取搜索建议
export const reqSearchSuggest = (keywords, type) => request({ url: `/search/suggest?keywords=${keywords}&type=${type}`, method: "GET" });

//获取搜索结果
export const reqSearchResult = (keywords) => request({ url: `/cloudsearch?keywords=${keywords}`, method: 'GET' });